# 方法: append pop remove del sort sorted insert

names = ['tf', 'jxl', 'ldh']
print(names)
print(names[-1])

print(names[0] + ': i am best')

names2 = names
print(id(names))
print(id(names2))
names[0] = 'tanfeng'
names.append("zxy")
names2.insert(1, 'hh')
print(names2)
del names[3]
print(names)

p = names.pop()
print(names)
print(p)

names.remove('hh')
print(names2)
names.sort()
print(names)
names.sort(reverse=True)
print(names)

names3 = sorted(names)
print(names)
print(names3)
